from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
# 打开浏览器 请求关闭网址
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')

kw = driver.find_element(By.ID, 'kw')